# f = open('2.txt', 'a',encoding='utf-8')
# f.write('卡卡卡')
# f.close()


# f = open('1.txt', 'w',encoding='utf-8')
#
# for i in range(1,10001):
#     f.write('哈哈哈\n')
#
# f.close()
#
# f = open('1.txt','r',encoding='utf-8')
#
# print(len(f.read()))
# f.close()

# 未解决
# f = open('1.txt','r')
# d = f.read()
# f.close()
# k = open('2.txt','w')
# k.write(d)
# k.close()
# k = open('2.txt','r')
# print(k.read())



# h = open('3.txt','w')
# k = h.write('asssaadadadadaddadsaasafdafa')
# h.close()
# g = open('3.txt','r')
# f = g.read()
# g.close()
# l = 0
# for i in f:
#     if i != 'a':
#         e = open('1.txt', 'w')
#         e.write(i)
#         e.close()
#
#         print(i,end= '')



# def f(a,b):
#     if l == a + b:
#         d = open('5txt','w')
#         d.write(f'a + b = {a+b}')
#         d.close()
#         return l
# g = f(10,2)
#
#
# print(g)



# k = '4567889'
# h = k.split()
# print(h)

# h = open('5.txt','r')
# l = h.read()
# h.close()
# g = open('5.txt','w')
#
# list = []
# if '+' in l:
#     list = l.split('+')
#     g.write(f'{list[0]}+{list[1]}={int(list[0])+int(list[1])}')
# # g.close()
# f = open('5.txt','r')

# sum = 0
# # h = f.readline()
# for i in h:
#     h = f.read()
#     # if i == '':
#     #     break
#     if i[0] == '王':
#         sum += 1

# f.close()
# print(sum)




# f.close()
# h = '5689'
# list = h.split('')
# print(list)
import json
f = open('fg.json','r',encoding= 'utf-8')
k = json.load(f)
f.close()
print(k)
for i in k:
    print(i,k[i])


































import json
h = {'name':'李四','age':18}
g = open('gg.json','w',encoding='utf-8')
json.dump(h,g,ensure_ascii=False)
g.close()

















